package com.wj.infrastructure.mapper;

import com.wj.domain.vo.NetworkConfigVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface NetworkConfigMapper {

    @Select("<script>" +
            "select id, name, url, is_new as isNew, select_class as selectClass, new_num as newNum " +
            " from network_config where deleted=0 and #{url} like concat('%',url,'%')" +
            " limit 1" +
            "</script>")
    NetworkConfigVO getConfig(@Param("url") String url);
}
